package com.kaijie.service.impl;

import com.kaijie.entity.CloudPcbinfom;
import com.kaijie.mapper.thirdParty.PcbinfomMapper;
import com.kaijie.service.PcbInfomService;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
 * @Author pxh
 * @TODO TODO
 * @Date 2017/7/3
 */
@Service
@Transactional
public class PcbInfomServiceImpl implements PcbInfomService {

    @Autowired
    @Qualifier("thirdPartyPcbinfomMapper")
    private PcbinfomMapper pcbinfomMapper;


    /**
     * @param sqlSessionTemplate
     * @param pcdId
     * @return
     */
    @Override
    public List<CloudPcbinfom> findByPcbId(SqlSessionTemplate sqlSessionTemplate, Date pcdId) {
        return pcbinfomMapper.findByPcbid(sqlSessionTemplate, pcdId);
    }
}
